package com.od.service.serviceImpl;

import com.od.entity.Intention;
import com.od.mapper.IntentionMapper;
import com.od.service.IntentionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IntentionServiceImpl implements IntentionService {

    @Autowired
    private IntentionMapper intentionMapper;
    @Override
    public List<Intention> getIntentionById(int intentionResume) {
        return intentionMapper.selectIntentionById(intentionResume);
    }

    @Override
    public int addIntention(Intention intention) {
        return intentionMapper.insertIntention(intention);
    }

    @Override
    public int updateIntentionById(Intention intention) {
        return intentionMapper.updateIntentionById(intention);
    }

    @Override
    public int deleteIntentionById(int intentionId) {
        return intentionMapper.deleteIntentionById(intentionId);
    }
}
